package com.caipos.actor.api;

import com.caipos.actor.common.msg.KbActorError;
import lombok.Getter;

public class KbNodeException extends Exception implements KbActorError {

    @Getter
    private final boolean unrecoverable;

    public KbNodeException(String message) {
        this(message, false);
    }

    public KbNodeException(String message, boolean unrecoverable) {
        super(message);
        this.unrecoverable = unrecoverable;
    }

    public KbNodeException(Exception e) {
        this(e, false);
    }

    public KbNodeException(Exception e, boolean unrecoverable) {
        super(e);
        this.unrecoverable = unrecoverable;
    }

}
